package com.zhida.jiyangcenter.api

import androidx.annotation.Keep

@Keep
data class ProductListEntity(
    val product: List<Product>?,
    val total_count: Int?
) {
    @Keep
    data class Product(
        val attribute: String?,
        val max_money: Double?,
        val min_money: Double?,
        val name: String?,
        val picture_path: String?,
        val subtitle: String?,
        val uuid: String?
    )
}

@Keep
data class ShopInfoEntity(
    val product: Product?,
    val comment: List<Comment>?,
    val comment_count:String?
) {
    @Keep
    data class Comment(
        val attitude: Int?,
        val avatar: String?,
        val content: String?,
        val describes: Int?,
        val logistics: Int?,
        val name: String?,
        val picture: List<String>?,
        val star: String?,
        val time: String?,
        val uuid: String?
    )

    @Keep
    data class Product(
        val details: List<String>?,
        val product_pic: List<String>?,
        val attribute: String?,
        val express: String?,
        val max_money: Double?,
        val min_money: Double?,
        val month_count: Int?,
        val name: String?,
        val picture_path: String?,
        val subtitle: String?,
        val collection: Boolean?,
        val uuid: String?
    )
}

@Keep
data class ShopCarListEntity(
    val shop_car: List<ShopCar>?
) {
    @Keep
    data class ShopCar(
        var num: Int,
        val product: Product?,
        val uuid: String?
    ) {
        @Keep
        data class Product(
            val max_money: Double?,
            val name: String?,
            val picture: String?,
            val uuid: String?
        )
    }
}

@Keep
data class ShopCarStoreListEntity(
    val shop_car: List<ShopCar>?
) {
    @Keep
    data class ShopCar(
        val serve: List<Serve>?,
        val store: Store?
    ) {
        @Keep
        data class Serve(
            val max_money: Int?,
            val car_uuid: String?,
            val name: String?,
            var num: Int,
            val picture: String?,
            val uuid: String?
        )

        @Keep
        data class Store(
            val name: String?,
            val uuid: String?
        )
    }
}


@Keep
data class StoreListEntity(
    val examination: List<Examination>?,
    val health: List<Health>?,
    val total_count: Int?
) {
    @Keep
    data class Examination(
        val address: String?,
        val distance: String?,
        val end_time: String?,
        val name: String?,
        val picture: String?,
        val start_time: String?,
        val uuid: String?
    )

    @Keep
    data class Health(
        val distance: String?,
        val label: String?,
        val name: String?,
        val longitude:Double?,
        val latetude:Double?,
        val picture: String?,
        val serve: List<Serve>?,
        val uuid: String?
    ) {
        @Keep
        data class Serve(
            val max_money: Double?,
            val min_money: Double?,
            val name: String?,
            val uuid: String?
        )

    }
}

@Keep
data class StoreExaminationListEntity(
    val serve: List<Serve>?,
    val total_count: Int?
) {
    @Keep
    data class Serve(
        val description: String?,
        val distance: String?,
        val name: String?,
        val picture: String?,
        val price: Double?,
        val store_name: String?,
        val subtitle: String?,
        val uuid: String?
    )
}

@Keep
data class StoreExaminationInfoEntity(
    val serve_info: ServeInfo?,
    val comment: List<Comment>?,
    val comment_count:String?
) {
    @Keep
    data class Comment(
        val attitude: Int?,
        val avatar: String?,
        val content: String?,
        val describes: Int?,
        val logistics: Int?,
        val name: String?,
        val picture: List<String>?,
        val star: String?,
        val time: String?,
        val uuid: String?
    )
    @Keep
    data class ServeInfo(
        val description: List<Path>?,
        val label: String?,
        val low_price: Double,
        val name: String?,
        val price: Double?,
        val serve_picture: List<Path>?,
        val store: List<Store>?,
        val subtitle: String?,
        val collection: Boolean?,
        val uuid: String?
    ) {
        @Keep
        data class Path(val path: String?)

        @Keep
        data class Store(
            val address: String?,
            val distance: Double?,
            val name: String?,
            val uuid: String?
        )
    }
}
@Keep
data class CommentList(val comment:List<Comment>?,val comment_count:String?){
    @Keep
    data class Comment(
        val attitude: Int?,
        val avatar: String?,
        val content: String?,
        val describes: Int?,
        val logistics: Int?,
        val name: String?,
        val picture: List<String>?,
        val star: String?,
        val time: String?,
        val uuid: String?
    )
}


@Keep
data class ProductOrderEntity(
    val address: Address?,
    val product: List<Product>?,
    val serve: List<Serve>,
    val total_money: Double?,
    val coupon_list: List<CouponList>?,
    val user: User?
) {
    @Keep
    data class CouponList(
        val classification: String?,
        val end_time: String?,
        val full_reduction: Int?,
        val immediately: Int?,
        val name: String?,
        val picture: String?,
        val reduction: Int?,
        val start_time: String?,
        val uuid: String?
    )

    @Keep
    data class Serve(
        val name: String?,
        val num: Int?,
        var coupon_id: String? = "",
        var coupon_money: Int? = 0,
        val pic: String?,
        val price: Double?,
        val serve: String?
    )

    @Keep
    data class Address(
        val area: String?,
        val detail: String?,
        val name: String?,
        val phone: String?,
        val state: Int?,
        val uuid: String?
    )

    @Keep
    data class Product(
        val is_up: Boolean?,
        val name: String?,
        val pic: String?,
        var coupon_id: String? = "",
        var coupon_money: Int? = 0,
        val price: Double?,
        val product: String?,
        val num: Int?,
        val up_money: Double?
    )

    @Keep
    data class User(
        val level: String?,
        val name: String?,
        val uuid: String?
    )

}

@Keep
data class ProductOrderSubmitEntity(
    val code: String?,
    val total_money: Double?
)

@Keep
data class OrderPrams(
    var address: String,
    var total_money: Double,
    var product: List<ProductPrams>
) {
    @Keep
    data class ProductPrams(var product_uuid: String, var num: Int, var coupon_uuid: String)
}

@Keep
data class ErecordListEntity(
    val create_time: String?,
    val record_code: String?,
    val uuid: String?
)








